package com.neusoft.controller;

import com.neusoft.service.RegistLevelService;
import com.neusoft.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author akemihomurasama
 */
@RestController
@RequestMapping("/registLevel")
@CrossOrigin
public class RegistLevelController {
    @Autowired
    private RegistLevelService registLevelService;
    /**
     * 查询所有挂号级别
     * @return 挂号级别列表
     */
    @RequestMapping("/queryAllLevel")
    public Result queryRegistLevel() {
        return registLevelService.queryAllLevel();
    }
}
